import { http } from "@/utils/http";

export type commonResult<T> = {
    code: number;
    msg: string;
    result: T;
};

/** 1.11.1 单位统计 */
export const getUnitStatistics = (params?: object) => {
    return http.request<commonResult<any>>("get", '/system/system/v2/statistic/unity', {
        params
    });
};
/** 1.11.2 个体统计 */
export const getIndividualStatistics = (params?: object) => {
    return http.request<commonResult<any>>("get", '/system/system/v2/statistic/individual', {
        params
    });
};
/** 1.11.3 统计监管单位 */
export const getStatisticUnit = (params?: object) => {
    return http.request<commonResult<any>>("get", '/system/system/v2/statistic/regulatory ', {
        params
    });
};
/** 1.11.4 个体用户增长统计 */
export const getIndividualUserGrowth = (params?: object) => {
    return http.request<commonResult<any>>("get", '/system/system/v2/statistic/individual-month', {
        params
    });
};
/** 1.11.5待办提醒 */
export const getTodoRemind = (params?: object) => {
    return http.request<commonResult<any>>("get", '/system/system/v2/statistic/remind', {
        params
    });
};
/** 1.11.6项目增长统计 */
export const getProjectGrowth = (params?: object) => {
    return http.request<commonResult<any>>("get", '/system/system/v2/statistic/project', {
        params
    });
};
/** 1.11.7序列号/流量卡统计 */
export const getProjectflow = (params?: object) => {
    return http.request<commonResult<any>>("get", '/system/system/v2/statistic/flow-sn', {
        params
    });
};

/**运营平台接口 */

/** 2.10.4 运营首页统计  */
export const getProjectAlarm = (params?: object) => {
    return http.request<commonResult<any>>("get", '/business/statistics/v2/index', {
        params
    });
};